Builder

class Builder

A builder of UserAgentData.

Builders are created by invoking newBuilder.

Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
Adds the brand of the user-agent.
Link copied to clipboard
Adds the form factor associated with the device of the user agent.
Link copied to clipboard
open fun architecture(architecture: String): UserAgentData.Builder
Sets the architecture of the platform on which a given user agent is executing (e.g.
Link copied to clipboard
Sets the bitness of the architecture of the platform on which a given user agent is executing (e.g.
Link copied to clipboard
open fun build(): UserAgentData
Returns a new UserAgentData instance built from the current state of this builder.
Link copied to clipboard
open fun fullVersion(fullVersion: String): UserAgentData.Builder
Sets the full version of the user-agent (e.g.
Link copied to clipboard
Sets whether the user agent is running on a mobile device (e.g.
Link copied to clipboard
Sets the model of the device on which a given user agent is executing.
Link copied to clipboard
Sets the platform on which a given user agent is executing (e.g.
Link copied to clipboard
open fun platformVersion(platformVersion: String): UserAgentData.Builder
Sets the platform version on which a given user agent is executing.
Link copied to clipboard
Sets whether the user agent binary is running in 32-bit mode on 64-bit Windows.